#include <cstdio>
#include <cstdlib>
#include <cstring>

class A {
		public:
		virtual void print(){
				puts("class A");
		}
};
class B: public A{
		public:
		void print(){
			puts("class b");
		}
};
void sh(){
		system("sh");
}
char buf[1024];
int main(){
		setvbuf(stdout,0,_IONBF,0);

		A *p = new B();      //b
		delete p;            //b

		fgets(buf,sizeof(buf),stdin);      //b
		char *q = strdup(buf); //copy data into buffer

		p->print();
		return 0;
}

